<h1 class='header'>Login to SA Blog Awards</h1>
<div class='contentBody'><br />
	<div id='login-flash' style='text-align:center;'><?php if(isset($msg) && trim($msg)!='') echo $msg; ?></div>
<?php 
	if($forgot!='forgot') { ?>
	<form name='loginform' id='loginform' class='funcSubmitLogin' action='<?php echo HTTP_SERVER; ?>login' method='post'>
		<div align='center'>
			<p>
				<b>Username: </b><small>(required)</small><br />
				<input type='text' name="user" id="user" size="15" class='required' value='<?php echo $post_username; ?>' />
			</p>
			<p>
				<b>Password: </b><small>(required)</small><br />
				<input type='password' name='pass' id='pass' size='15' class='required' value='<?php echo $post_password; ?>' />
			</p>
			<p>
				<input type='checkbox' id='enablecookies' name='enablecookies' value='1' <?php if($post_cookies) echo "selected='selected'"; ?> />
				<label for='enablecookies' style='cursor:pointer;'> Remember my password for 2 weeks.</label>
			</p>
			<p>
				<input type='submit' name='submit' id='submit' class='button' value='login' />
				<span id='login-loading' class='hideme spinner'> </span>
				<p><a href='<?php echo HTTP_SERVER; ?>login/forgot'>Forgot your password?</a></p>
			</p>
		</div>
	</form>
<?php } else { ?>
	<form name='forgotfrm' id='forgotfrm' class='funcSendForgotPassword' action='<?php echo HTTP_SERVER; ?>login/forgot' method='post'>
		<div align='center'>
			<p>
				<b>Username: </b><small>(required)</small><br />
				<input type='text' name="user" id="user" size="15" class='required' value='<?php echo $post_username; ?>' />
			</p>
			<p>
				<b>Your Email Address: </b><small>(required)</small><br />
				<input type='text' name="email" id="email" size="25" class='required validate-email' value='<?php echo $post_email; ?>' />
			</p>
			<p>
				<input type='submit' name='submit' id='submit' class='button' value='Send New Password' />
				<span id='login-loading' class='hideme spinner'> </span>
				<p><a href='<?php echo HTTP_SERVER; ?>login' title='back to login page'><< Back to Login</a></p>
			</p>
		</div>
	</form>
<?php } ?>
</div>